from pymongo import MongoClient

client = MongoClient(
    "mongodb://120.78.167.249:28464/JBN_PRO"
    "?authSource=admin"
    "&replicaSet=ZLKJ"
    "&connectTimeoutMS=300000"
    "&readPreference=secondaryPreferred"
    "&ssl=false",
    tz_aware=True,
    maxPoolSize=50,  # 自动启用连接池
    heartbeatFrequencyMS=10000  # 每10秒检测节点存活
)

db = client['JBN_PRO']
